package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntityPlus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;

/**
 * 用户积分奖励对象 web_user_score_award
 * 
 * @author wsliupan@126.com
 * @date 2021-06-01
 */
@ApiModel("用户积分奖励对象")
public class WebUserScoreAward extends BaseEntityPlus
{
    private static final long serialVersionUID = 1L;

    /** 主键自增 */
    private Long id;

    /** 所属用户 */
    @Excel(name = "所属用户")
    @ApiModelProperty(value = "所属用户" )
    @NotNull(message = "所属用户")
    private Long userId;

    /** 被推荐用户 */
    @Excel(name = "被推荐用户")
    @ApiModelProperty(value = "被推荐用户" , hidden = true )
    private Long recommendUser;

    /** 奖励(分) */
    @Excel(name = "奖励(分)")
    @ApiModelProperty(value = "奖励(分)" )
    @NotNull(message = "奖励(分)")
    private Long amout;

    /** 1一级奖励2二级奖励 */
    @Excel(name = "1一级奖励2二级奖励")
    @ApiModelProperty(value = "1一级奖励2二级奖励" , hidden = true )
    private Long type;

    /** 回收订单ID */
    @Excel(name = "回收订单ID")
    @ApiModelProperty(value = "回收订单ID" )
    @NotNull(message = "回收订单ID")
    private Long recycleId;

    @Excel(name = "所属用户")
    @ApiModelProperty(value = "所属用户" )
    @TableField(exist = false)
    private String nickname;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setRecommendUser(Long recommendUser) 
    {
        this.recommendUser = recommendUser;
    }

    public Long getRecommendUser() 
    {
        return recommendUser;
    }
    public void setAmout(Long amout) 
    {
        this.amout = amout;
    }

    public Long getAmout() 
    {
        return amout;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }
    public void setRecycleId(Long recycleId) 
    {
        this.recycleId = recycleId;
    }

    public Long getRecycleId() 
    {
        return recycleId;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }
}
